function T = static_resid_tt(T, y, x, params)
% function T = static_resid_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 20);

T(1) = 1-1/params(2);
T(2) = (-1)/params(4);
T(3) = 1/params(4)-1/params(2);
T(4) = exp(y(32)*T(3));
T(5) = params(1)*exp(T(2)*y(31))*T(4);
T(6) = y(1)*exp(y(32))/y(2);
T(7) = T(6)^(1/params(2)-params(3));
T(8) = (params(10)-1)/params(10);
T(9) = y(28)^T(8);
T(10) = y(11)^params(12);
T(11) = y(12)^(1-params(12));
T(12) = params(18)/(1-1/params(15));
T(13) = y(10)/y(11);
T(14) = 1/y(23);
T(15) = params(14)/2*(exp(y(15)-params(44))-1)^2;
T(16) = y(3)/exp(y(15));
T(17) = (1-params(9))/params(9)*exp(y(27)*(1-1/params(10)));
T(18) = (y(8)/y(28))^(1/params(10));
T(19) = (params(4)-1)/params(4);
T(20) = 1/(1+params(5))*y(7)^T(19)+params(5)/(1+params(5))*(params(6)-y(12))^T(19);

end
